﻿using System.Windows.Forms;

namespace QuanLyHocSinh
{
    class ThemTab
    {
        public void AddInTab(DevExpress.XtraTab.XtraTabControl XtraTabCha, string icon, string TabNameAdd
            , System.Windows.Forms.UserControl UserControl)
        {
            DevExpress.XtraTab.XtraTabPage TAbAdd = new DevExpress.XtraTab.XtraTabPage();
            TAbAdd.Name = "TestTab";
            TAbAdd.Text = TabNameAdd;
            TAbAdd.Controls.Add(UserControl);
            UserControl.Dock = DockStyle.Fill;
            XtraTabCha.TabPages.Add(TAbAdd);
        }
    }
}
